-- GENERATED SPELL FOR [Njorndar Spear-Sister] --


function spell0_30243(pUnit, Event) --@Stab,n/a--
pUnit:FullCastSpellOnTarget(38029,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30243', 655, 1)
end

function spell1_30243(pUnit, Event) --@Throw Spear,n/a--
pUnit:FullCastSpellOnTarget(43413,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30243', 1500, 1)
end

function Sorts_30243(pUnit, Event)
local choix_sorts_30243 = math.random(0, 1)
if choix_sorts_30243 == 0 then
pUnit:RegisterEvent('spell0_30243', 1, 1)
end
if choix_sorts_30243 == 1 then
pUnit:RegisterEvent('spell1_30243', 1, 1)
end
end

function mob30243_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30243', math.random(1500, 3000), 1)
end

function mob30243_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30243_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30243_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30243, 1, 'mob30243_Action')
RegisterUnitEvent(30243, 2, 'mob30243_Leave')
RegisterUnitEvent(30243, 3, 'mob30243_Kill')
RegisterUnitEvent(30243, 4, 'mob30243_Die')
